package com.kingyun.gpsinspection.purificationservice.facade.service.iam.qhse;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.HazardSource;

/**
 * @version V1.0
 * @Package com.cqhilink.iot.integratedapplicationmanagement.services.innerservice.qhse
 * @Description: ${TODO}(重大危险源服务层)
 * @author: lutianbo
 * @date: 2016/11/29,0029
 */

public interface HazardSourceService {
    /**
     * 删除重大危险源
     * @param HazardSourceId
     * @return
     */
    int deleteByPrimaryKey(String[] HazardSourceId);

    /**
     * 新增重大危险源
     * @param record
     * @param uploadFiles 需要上传的文件
     * @param deletedFiles 需要删除的文件
     * @return
     */
    int insertSelective(HazardSource record, String uploadFiles, String deletedFiles);

    /**
     * 根据id查询重大危险源
     * @param HazardSourceId
     * @return
     */
    HazardSource selectByPrimaryKey(String HazardSourceId);

    /**
     * 根据id更新重大危险源
     * @param record
     * @param uploadFiles 需要上传的文件
     * @param deletedFiles 需要删除的文件
     * @return
     */
    int updateByPrimaryKeySelective(HazardSource record, String uploadFiles, String deletedFiles);

    /**
     * 重大危险源列表查询
     * @param searchBean
     * @return
     */
    JSONObject hazardSourceList(BootstrapSearchBean searchBean);

    /**
     * 判断重大危险源名是否存在
     * @param hazardName
     * @return
     */
    boolean isExitByName(String hazardName);

}
